package com.gtw.modules.dao;

import com.gtw.modules.entity.SysUserRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/** 用户与角色对应关系
 * Created by wuye on 2018/1/11.
 */
@Mapper
@Repository
public interface SysUserRoleDao extends BaseDao<SysUserRoleEntity> {

    /**
     * 根据用户ID，获取角色ID列表
     */
    List<Long> queryRoleIdList(Long userId);
}
